<?php

use think\facade\Route;

Route::group('v1',function(){

      //提交记录
      Route::group('submission',function(){//提交记录
        Route::get('list','Submission/submissionList');//提交记录列表
      });

      //问题
      Route::group('problem',function(){
        Route::get('list','Problem/problemList');//题库列表
        Route::get('detail','Problem/problemDetail');//题目详情
      });

      //竞赛
      Route::group('contest',function(){//竞赛
        Route::get('list','Contest/contestList');//竞赛列表
        Route::get('detail','Contest/contestDetail');//竞赛详情
      });

      //排名
      Route::group('rank',function(){
        Route::get('list','Rank/rankList');
      });

      //判题
      Route::group('judge',function(){
        Route::post('do_judge','Judge/submit');
      });
});
// })->middleware(app\api\middleware\AuthCheck::class);//登录权限验证